package com.feng.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * (Comment)表实体类
 *
 * @author feng
 * @since 2024-11-05 21:33:35
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Comment{
    //评论id
    private Long id;
    //文章id
    private String articleId;

    private Integer type;
    //根评论id
    private Long rootId;
    //评论内容
    private String content;
    //所回复的目标对象的用户id
    private String toCommentUserId;
    //回复目标评论的id
    private Long toCommentId;
    //创建人
    @TableField(fill = FieldFill.INSERT)
    private String createBy;
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    //更新人
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;
    //更新时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    //逻辑删除标志(0标识未删除，1表示已删除)
    private Integer delFlag;
}

